<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'res-assignment-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

<!--	<div class="row"> -->
		<?php //echo $form->labelEx($model,'course_id'); ?>
		<?php //echo $form->textField($model,'course_id',array('size'=>11,'maxlength'=>11)); ?>
		<?php //echo $form->error($model,'course_id'); ?>
<!--	</div> -->

<!--	<div class="row"> -->
		<?php //echo $form->labelEx($model,'resource_id'); ?>
		<?php //echo $form->textField($model,'resource_id',array('size'=>11,'maxlength'=>11)); ?>
		<?php //echo $form->error($model,'resource_id'); ?>
<!--	</div> -->

	<div class="row">
		<?php echo $form->labelEx($model,'dead_line'); ?>
		<?php echo $form->textField($model,'dead_line'); ?>
		<?php echo $form->error($model,'dead_line'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'is_published'); ?>
		<?php echo $form->textField($model,'is_published'); ?>
		<?php echo $form->error($model,'is_published'); ?>
	</div>

<!--	<div class="row"> -->
		<?php //echo $form->labelEx($model,'teacher_id'); ?>
		<?php //echo $form->textField($model,'teacher_id'); ?>
		<?php //echo $form->error($model,'teacher_id'); ?>
<!--	</div> -->

	<div class="row">
		<?php echo $form->labelEx($model,'publish_time'); ?>
		<?php echo $form->textField($model,'publish_time'); ?>
		<?php echo $form->error($model,'publish_time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'requirement'); ?>
		<?php echo $form->textArea($model,'requirement',array('size'=>60,'maxlength'=>2048)); ?>
		<?php echo $form->error($model,'requirement'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
